import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class LiczbaTest4
{

	Liczba l = null;
	@Before
	public void start() throws Exception
	{
		l = new Liczba(43);
	}
	@Test
	public void test43() throws Exception
	{
		String zamien43naFive = l.zamiana(5);
		assertEquals(zamien43naFive, "133");
	}
	@Test(expected=LiczbaException.class)
	public void test4() throws Exception
	{
		l = new Liczba(-4);
		String zamien4naBin = l.zamiana(2);
		assertEquals(zamien4naBin, "-100");
	}
	@Test(timeout=500)
	public void test10() throws Exception
	{
		l = new Liczba(10);
		String zamien10naEleven = l.zamiana(11);
		assertEquals(zamien10naEleven, "A");
	}
	@After
	public void stop()
	{
		l = null;
	}
}
